package edu.base.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import edu.base.util.HigherResponse;
import edu.base.entity.RecordRepair;

public interface RecRepService {
	//分页查询所有报修记录
	HigherResponse<PageInfo<RecordRepair>> queryRecByPage(Integer pageNum, Integer pageSize) ;
	//根据日期、预约方式和报修状态查询报修记录
	HigherResponse<PageInfo<RecordRepair>> queryRecByDate(String beginDate,String endDate,Integer repairStatus,Integer appointment,Integer pageNum,Integer pageSize);
	//根据报修id查询报修记录
	HigherResponse<RecordRepair> queryOneRec(Integer id);
	//更新报修记录信息
	HigherResponse<String> updateRecById(RecordRepair recRep);
	//添加报修记录
	HigherResponse<String> insertRec(RecordRepair recRep);
	//删除报修记录for real
	HigherResponse<String> deleteRecRepById(Integer id);
	//删除报修记录fake
	HigherResponse<String> updateStatus(Integer id);
	//批量删除报修记录
	HigherResponse<String> updateRecStatus(List<Integer> ids);
}
